package cn.tedu.autoshow.website.mapper;

import cn.tedu.autoshow.website.pojo.entity.AutoShow;
import cn.tedu.autoshow.website.pojo.vo.AutoShowListItemVO;
import cn.tedu.autoshow.website.pojo.vo.AutoShowStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.List;

@Repository
@Transactional
public interface AutoShowMapper extends BaseMapper<AutoShow> {
    AutoShowStandardVO getStandardById(Long id);

    int countByTitle(String title);

    List<AutoShowListItemVO> list();

    int countByStartEnd(LocalDateTime startTime, LocalDateTime endTime);

}
